﻿using UnityEngine;
using System.Collections;
using GameData;
using UnityEngine.UI;

public class CusInfo : MonoBehaviour
{

    public Text Text;
    public GameObject mask;
    public CustomerSignData CustomerData;
    public bool isShowNum=false;

    public void SetCustomer(CustomerSignData cus)
    {
        CustomerData = cus;
        Text.text = "顾问:"+cus.salename+ " 客户:" + cus.name+"  电话号码："+cus.phone;
        
        if (isShowNum)
        {
            bool ishas = false;
            if (!string.IsNullOrEmpty(cus.numstr))
            {
                Text.text += cus.numstr;

            }
            else
            {
                Text.text += " 未领取";
            }
        }
        mask.SetActive(cus.isSign);

    }

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
